﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Presentation/Main2.Master" AutoEventWireup="true" CodeBehind="Admin_AddMovie1.aspx.cs" Inherits="YAMN_Cinemas.Presentation.Admin_AddMovie1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style13
        {
        width: 784px;
            margin-left: 400px;
        }
        .style2
        {
            text-align: right;
            width: 243px;
        }
        .style14
        {
            width: 200px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <tr>
        <td>
 <div style="text-align: center">
    
        <asp:Label ID="lbl_AdminAddMovie" runat="server" Font-Bold="True" 
            Font-Size="XX-Large" Text="Add movie" ForeColor="Red"></asp:Label>
        <br />
        <br />
    
    </div>
    <table class="style1" style="width: 121%; margin-left: 400px;">
    
        <tr>
            <td class="style2">
                <asp:Label ID="lbl_MovieName" runat="server" Text="Movie Name:"></asp:Label>
            </td>
            <td class="style13">
                <asp:TextBox ID="txt_MovieName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ControlToValidate="txt_MovieName" ErrorMessage="Please enter movie name" 
                    ForeColor="Red" ToolTip="Please enter movie name">*</asp:RequiredFieldValidator>
            </td>
            <td class="style14">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="lbl_Screen" runat="server" Text="Screen Name:"></asp:Label>
            </td>
            <td class="style13">
                <asp:DropDownList ID="ddl_ScreenName" runat="server" 
                    onselectedindexchanged="ddl_ScreenName_SelectedIndexChanged" 
                    DataSourceID="ObjectDataSource_ScreenName" DataTextField="Screen_Name" 
                    DataValueField="ScreenID">
                    <asp:ListItem>A</asp:ListItem>
                    <asp:ListItem>B</asp:ListItem>
                    <asp:ListItem>C</asp:ListItem>
                </asp:DropDownList>
                <asp:ObjectDataSource ID="ObjectDataSource_ScreenName" runat="server" 
                    DeleteMethod="Delete" InsertMethod="Insert" 
                    OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" 
                    TypeName="YAMN_Cinemas.ScreenDataSetTableAdapters.ScreensTableAdapter" 
                    UpdateMethod="Update">
                    <DeleteParameters>
                        <asp:Parameter Name="Original_ScreenID" Type="Int64" />
                    </DeleteParameters>
                    <InsertParameters>
                        <asp:Parameter Name="Screen_Name" Type="String" />
                        <asp:Parameter Name="PSeats" Type="Int64" />
                        <asp:Parameter Name="ESeats" Type="Int64" />
                    </InsertParameters>
                    <UpdateParameters>
                        <asp:Parameter Name="Screen_Name" Type="String" />
                        <asp:Parameter Name="PSeats" Type="Int64" />
                        <asp:Parameter Name="ESeats" Type="Int64" />
                        <asp:Parameter Name="Original_ScreenID" Type="Int64" />
                    </UpdateParameters>
                </asp:ObjectDataSource>
            </td>
            <td class="style14">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="lbl_Time" runat="server" Text="Time:"></asp:Label>
            </td>
            <td class="style13">
                <asp:CheckBoxList ID="chkbx_ScreenTime" runat="server" 
                    DataSourceID="ObjectDataSource_ScreenTime" DataTextField="Screen_Time" 
                    DataValueField="STID">
                </asp:CheckBoxList>
                <asp:ObjectDataSource ID="ObjectDataSource_ScreenTime" runat="server" 
                    DeleteMethod="Delete" InsertMethod="Insert" 
                    OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" 
                    TypeName="YAMN_Cinemas.ScreenTimingDataSetTableAdapters.Screen_TimingsTableAdapter" 
                    UpdateMethod="Update">
                    <DeleteParameters>
                        <asp:Parameter Name="Original_STID" Type="Int64" />
                    </DeleteParameters>
                    <InsertParameters>
                        <asp:Parameter Name="Screen_Time" Type="String" />
                        <asp:Parameter Name="Description" Type="String" />
                    </InsertParameters>
                    <UpdateParameters>
                        <asp:Parameter Name="Screen_Time" Type="String" />
                        <asp:Parameter Name="Description" Type="String" />
                        <asp:Parameter Name="Original_STID" Type="Int64" />
                    </UpdateParameters>
                </asp:ObjectDataSource>
            </td>
            <td class="style14">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="lbl_Language" runat="server" Text="Language:"></asp:Label>
            </td>
            <td class="style13">
                <asp:DropDownList ID="ddl_Language" runat="server">
                    <asp:ListItem Selected="True">English</asp:ListItem>
                    <asp:ListItem>Tamil</asp:ListItem>
                    <asp:ListItem>Hindi</asp:ListItem>
                    <asp:ListItem>Telugu</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td class="style14">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="lbl_Duration" runat="server" Text="Duration:"></asp:Label>
            </td>
            <td class="style13">
                <asp:TextBox ID="txt_Duration" runat="server"></asp:TextBox>
                mins<asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                    ControlToValidate="txt_Duration" ErrorMessage="Please enter the duration" 
                    ForeColor="Red" ToolTip="Please enter the duration">*</asp:RequiredFieldValidator>
            </td>
            <td class="style14">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="lbl_Summary" runat="server" Text="Summary:"></asp:Label>
            </td>
            <td class="style13">
                <asp:TextBox ID="txt_Summary" runat="server" TextMode="MultiLine" Height="80px"></asp:TextBox>
            </td>
            <td class="style14">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="lbl_FromDate" runat="server" Text="From Date:"></asp:Label>
            </td>
            <td class="style13">
                <asp:TextBox ID="txt_FromDate" runat="server"></asp:TextBox>
                <asp:ImageButton ID="imgbtn_FromDate" runat="server" 
                    ImageUrl="~/Images/calendar-icon-28330212.jpg" onclick="imgbtn_FromDate_Click" 
                    Width="30px" CausesValidation="False" />
                <asp:Calendar ID="cal_FromDate" runat="server" 
                    onselectionchanged="cal_FromDate_SelectionChanged"
                    OnDayRender="cal_FromDate_DayRender" Height="143px" Width="120px" 
                    style="margin-top: 53px" ></asp:Calendar>
            </td>
            <td class="style14">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="lbl_ToDate" runat="server" Text="To Date:"></asp:Label>
            </td>
            <td class="style13">
                <asp:TextBox ID="txt_ToDate" runat="server" 
                    ontextchanged="txt_ToDate_TextChanged"></asp:TextBox>
                <asp:ImageButton ID="imgbtn_ToDate" runat="server" 
                    ImageUrl="~/Images/calendar-icon-28330212.jpg" onclick="imgbtn_ToDate_Click" 
                    Width="30px" CausesValidation="False" />
                <asp:Calendar ID="cal_ToDate" runat="server" 
                    onselectionchanged="cal_ToDate_SelectionChanged" 
                    ondayrender="cal_ToDate_DayRender"></asp:Calendar>
            </td>
            <td class="style14">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="Label1" runat="server" Text="Upload Image"></asp:Label>
            </td>
            <td class="style13">
                <asp:FileUpload ID="upload_ImageControl" runat="server" />
                <asp:Button ID="btn_Upload" runat="server" onclick="btn_Upload_Click" 
                    Text="Upload" CausesValidation="False" />
                <br />
            </td>
            <td class="style14">
                &nbsp;</td>
        </tr>
        
    </table>
    <p style="margin-left: 880px">
        <asp:Button ID="btn_Submit" runat="server" Height="23px" Text="Submit" 
            Width="66px" onclick="btn_Submit_Click" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="btn_Cancel" runat="server" Height="24px" Text="Cancel" 
            Width="69px" CausesValidation="False" onclick="btn_Cancel_Click" />
    </p>
    <div style="margin-left: 960px">
        <asp:Label ID="lbl_Status" runat="server" Text="Status"></asp:Label>
    </div>
    <br />
    <div style="margin-left: 880px">
        <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
    </div>
        </td>
    </tr>
</asp:Content>
